package com.wstx.mediaserver.service;

import com.wstx.mediaserver.util.Prt;
import lombok.extern.log4j.Log4j2;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

@Service
@Log4j2
public class AyakaService {

    @Value("${spring.servlet.multipart.location}")
    String remoteDir;

    public String postStr(String a) throws Exception {
        if (a.length() > 2) {
            Prt.p("红红火火恍恍惚惚");
            return remoteDir;
        }
        else throw new Exception("异常信息......");
    }
}
